<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src='js/jquery.js'></script>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<link href="css/news.css" rel="stylesheet" type="text/css" />
<title>新闻</title>

</head>
<script>
$(function(){
    $('.pro_left a').bind('click', function(){
    $('.pro_left a').removeClass('xuan');
    $(this).addClass('xuan');
});
});
</script>
<body>
<div class="container">
<?php include 'header.php';  ?>
   
  <div class="quanbu"> 
    <div class="news">
   <img src='img/news_01.jpg' width="34" height="29" />新闻/News
   <p>
<img src='img/news_09.jpg' width="990" height="1" />
   </p>
</div>


<div class="dleft_side_bar">
  <div class="pro_left">
    	<ul>
    	    <?php
            foreach($typerows as $row)
            {
            ?>            
            <li><a href="news.php?tid=<?php echo $row['id']?>"><?php echo $row['typename']?></a></li>
            <?php
            }
            ?>
        </ul>
    </div>

<div class="right_right"> 
    
    <?php 
    foreach($newsrows as $row)
    {
    ?>
            <!--一条新闻的开始 -->
           <div class="right1"> 
             <img src="<?php echo $row['imgurl']; ?>" width="90" height="90" />
           </div>
           <div class="right2">
            <div class="date">
            <div class="date1"><p style=" font-size:30px;"><?php echo substr(date("d",strtotime($row['pdate'])),0,2); ?>
                    <nobr style=" color:red;" >|</nobr></div></p><?php echo date("m",strtotime($row['pdate'])); ?>月<br>
                        <?php echo substr(date("Y",strtotime($row['pdate'])),0,4); ?>年</div>
            <a href="news_details.php?id=<?php echo $row['id']; ?>">【<?php echo $row['typename']; ?>】<B><?php echo $row['title']; ?></B></a>
             <p>&nbsp;</p>
            <p class="wz"><a href="news_details.php?id=<?php echo $row['id']; ?>"> <?php echo my_substr($row['content'],90); ?></a></p>
             </div>
             <img src='img/news_04.jpg' width="744" height="9" />
            <!--一条新闻的结束 -->
    <?php
    }
    ?>
      
    
      
      <div class="pro_rightfot">
  <a href="#"><img src="img/7.png" /></a>
            <span>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="#"> 1 </a>      
            <a href="#"> 2 </a>     
            <a href="#"> 3 </a>
            <a href="#"> 4 </a>
            <a href="#"> ... </a>
            <a href="#"> 10 </a>
            &nbsp;&nbsp;
            </span>
            <a href="#"><img src="img/8.png" /></a>
         </span> 
 </div>
  

  
 

 </div>
</div>
</div>


   
<?php include 'footer.php';  ?>
</div>
</body>
</html>
